package lab02.test4;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Staff he=new Staff();
        System.out.println("请输入员工的姓名、工号、基本工资、工作时长：");
        Scanner in=new Scanner(System.in);
        he.setName(in.next());
        he.setNum(in.next());
        he.setPay(in.nextInt());
        he.setWorktime(in.nextDouble());
        he.count();
    }
}
